package com.stef.saas.ssm.feign.fallback;

import com.stef.saas.common.base.dto.BaseResult;
import com.stef.saas.common.base.enums.ErrorCodeEnum;
import com.stef.saas.ssm.feign.UmsClient;
import com.stef.saas.ssm.feign.entity.User;
import org.springframework.stereotype.Component;

@Component
public class UmsClientFallBack implements UmsClient {
    @Override
    public BaseResult<User> getById(Long id) {
        return BaseResult.error(ErrorCodeEnum.UMS10000.code(), "[SSM]服务[UMS]用户模块降级返回，此时可以使用兜底数据.");
    }
}
